/**
 * @Author 韦建韩
 * @Date 2022/3/24
 */
package com.zczn.order_system.constant;

public interface HttpCodeConstant {
    enum Field{
        Success(200,"服务器已成功处理了请求"),
        Created(201,"请求成功且服务器已创建了新的资源"),
        Accepted(202," 服务器已接受了请求，但尚未对其进行处理"),
        Nopermission(203,"服务器已成功处理了请求，但返回了可能来自另一来源的信息"),
        NoContent(204,"服务器成功处理了请求，但未返回任何内容"),
        ErrorRequest(400,"服务器不理解请求的语法"),
        AuthenticationError(401,"身份验证错误"),
        Reject(403,"服务器拒绝请求"),
        MethodDisabled(405,"禁用请求中指定的方法"),
        TimeOut(408,"请求超时"),
        ServerError(500,"服务器内部错误"),
        ServeNotUse(503,"服务不可用");

        public Integer code;
        public String message;
        Field(Integer code, String message){
            this.code = code;
            this.message = message;
        }
    }
}
